/**
 *
 */
package com.teamall.web.sys.service;

import java.math.*;
import java.util.*;

import com.teamall.core.common.Page;
import com.teamall.framework.exception.BaseAppException;

import com.teamall.web.app.vo.AppUserVO;
import com.teamall.web.sys.db.po.SysUserPO;

/**
 * <Description> <br>
 *
 * @author codeCreater<br>
 * @version 1.0<br>
 * @taskId <br>
 * @CreateDate 2014年11月11日 <br>
 * @see com.teamall.web.sys.service <br>
 * @since V1.0<br>
 */

public interface ISysUserService {

    SysUserPO selectByPrimaryKey(Integer key) throws BaseAppException;

    List<SysUserPO> selectByArg(SysUserPO record) throws BaseAppException;

    Page<SysUserPO> selectByArgAndPage(SysUserPO record, Page<SysUserPO> resultPage)
            throws BaseAppException;

    int add(SysUserPO record) throws BaseAppException;

    int update(SysUserPO record) throws BaseAppException;

    int delete(SysUserPO record) throws BaseAppException;

    AppUserVO userLogin(String liginName) throws BaseAppException;
    AppUserVO userLogin(String userName, String password, Integer userObjType) throws BaseAppException;
    String updPassword(Integer userId, String oldPassword, String newPassword) throws BaseAppException;
    String updPassword(String userName, String oldPassword, Integer userObjType, String newPassword) throws BaseAppException;
    Integer getAidMainStaffByUserObjId(Integer userObjId) throws  BaseAppException;
}
